from sqlalchemy import String
from sqlalchemy.dialects.mysql import INTEGER, DATETIME, TEXT

from shop.model import db


class Feedback(db.Model):
    __tablename__ = 'feedback'

    id = db.Column(INTEGER(11), primary_key=True)
    phone = db.Column(String(20))
    user_id = db.Column(INTEGER(11))
    feedback = db.Column(TEXT)
    save_time = db.Column(DATETIME)


